package cn.itsource.pethome.org.domain;

import cn.itsource.pethome.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Shop extends BaseDomain {
    /**
     * `id` bigint(20) NOT NULL AUTO_INCREMENT,
     `name` varchar(255) DEFAULT NULL,
     `tel` varchar(255) DEFAULT NULL,
     `registerTime` date DEFAULT NULL,
     `state` int(1) DEFAULT NULL,
     `address` varchar(255) DEFAULT NULL,
     `logo` varchar(255) DEFAULT NULL,
     `admin_id` bigint(20) NOT NULL,
     */
    private String name;
    private String tel;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date registerTime = new Date();

    private Integer state = 0;
    private String address;
    private String logo;

    private Employee employee;
}
